#ifndef PATH_H
#define PATH_H

#include <QObject>
#include <QStandardPaths>
#include <QDir>
#include <QCoreApplication>
#include <QUrl>
#include <QQmlEngine>

class Path : public QObject
{
    Q_OBJECT
    Q_PROPERTY(QString storage READ storage)
    Q_PROPERTY(QString configRes READ configRes)
    Q_PROPERTY(QString sdcard READ sdcard)
    Q_PROPERTY(QString desktop READ desktop)
    Q_PROPERTY(QString pictures READ pictures)
    Q_PROPERTY(QString movies READ movies)
    Q_PROPERTY(QString music READ music)
    Q_PROPERTY(QString download READ download)
    Q_PROPERTY(QString camera READ camera)



public:
    explicit Path(QObject *parent = 0);

    QString storage() const;

    QString configRes() const;

    QString sdcard() const;

    QString desktop() const;

    QString pictures() const;

    QString movies() const;

    QString music() const;

    QString download() const;

    QString camera() const;

signals:



public slots:
    QUrl toUrl(const QString &fileName);
    bool mkpath(const QString &path);

    QStringList files(const QString &path);
    QString toLocalFile(const QUrl &url);
    bool exists(const QString &fileName);
};

extern QObject *Path_singletontype_provider(QQmlEngine *engine, QJSEngine *scriptEngine);

#endif // PATH_H
